#configure_file (
#	       "${PROJECT_SOURCE_DIR}/src/peteconfig.h.in"
#	       "${PROJECT_BINARY_DIR}/src/peteconfig.h"
#)

add_library(BaseCode animation.cpp gameobject.cpp pathgraph.cpp physicsobject.cpp
		     statemachineobject.cpp bullet.cpp gamestate.cpp
		     level.cpp texture.cpp tileset.cpp editor.cpp textwriter.cpp)

add_library(ClientCode player.cpp zombie.cpp bat.cpp soul.cpp darkchampion.cpp monsterfactory.cpp
 		       ammo.cpp medpack.cpp flipnumber.cpp exit.cpp soldier.cpp)

target_link_libraries(ClientCode BaseCode)

if(WIN32)
	add_executable(pete petemain.cpp)
	target_link_libraries(pete ${EXTRA_LIBS})
elseif(UNIX)
	add_executable(../pete petemain.cpp)
	target_link_libraries(../pete ${EXTRA_LIBS})
endif()
